/****************************************************************************
** Copyright (C) 2008 Petar Toushkov <peter dot toushkov at gmail.com>
** Copyright (C) 2008 Omer Bahri Gordebak <gordebak at gmail.com>
**
** Additional help, code and insights by:
** adamvert - from http://ubuntuforums.org/
** zebulon M - from http://ubuntuforums.org/
**
** Artwork by Edward Solodukhin <arch1000@gmail.com>
**
** Parts of the following code are from the Phrasis project:
**
** http://code.google.com/p/phrasis/
**
** and are
**
** Copyright (C) 2006 Jacob R Rideout <jacob@jacobrideout.net>
** All rights reserved.
**
** This file may be used under the terms of the GNU General Public
** License version 2.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of
** this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/


#ifndef __MUSICROOM_H__
#define __MUSICROOM_H__

#include <QtGui>
#include <QWidget>
#include <SDL/SDL.h>
#ifdef Q_OS_MACX
# include <SDL_mixer/SDL_mixer.h>
#else
# include <SDL/SDL_mixer.h>
#endif
#include "ui_musicroom.h"

class TextRoom;

class MusicRoom: public QDialog
{
	Q_OBJECT
	
public:
	MusicRoom(QWidget *parent = 0);

public slots:
	void on_actionPlay_activated();
	void on_actionLoad_activated();

public:
	Mix_Music *music;
	void readSong();
	void writeSong();
	QString songPath;

protected:
	void hideEvent(QHideEvent *event);

private:
	Ui::MusicRoom ui;
};

#endif


